# build image
echo "starting build image..."
docker build -t pcc-restapi .

# stop and remove running container
echo "stop and remove running container..."
docker stop pcc-restapi
docker rm pcc-restapi

# start new instance container
echo "start new instance container..."
docker run -d -p 8888:8080 --name pcc-restapi pcc-restapi:latest
